import type { ComputedRef } from "vue";
import { usePermissionStore } from "@/stores/modules/permission";
import { useUserStoreHook } from "@/stores/modules/user";

export default function () {
  /*permission*/
  const roles = computed(() => {
    return useUserStoreHook().roles;
  });
  const permission: ComputedRef<any> = computed(() => {
    return usePermissionStore().permission;
  });
  return {
    roles,
    permission,
  };
}
